home *** CD-ROM | disk | FTP | other *** search
- On 26-Jan-98, Jens Vang Petersen wrote:
-
- >... How do I lock a drive (and marks it as 'busy' to all other
- >programs running)
- Try something like this:
-
- A$="DF0:"+Chr$(0)
- Dreg(1)=Varptr(A$)
- Dreg(2)=1
- A=Doscall(-726)
-
- >BTW: How do I unlock it when I'm finished ? :)
-
- A$="DF0:"+Chr$(0)
- Dreg(1)=Varptr(A$)
- Dreg(2)=0
- A=Doscall(-726)
-
-
- This will only work with V36 and up (AmigaDOS 2.0+)
- Prior to that you had to send packets to the handler
- directly, and it is much more involved.
-
- -Richard
-
-
-